// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false
import axios from 'axios'
import VueAxios from 'vue-axios'

Vue.use(VueAxios, axios)
// 如果出现报错 说$axios 不是一个函数 main.js追加
// 设置重写 $axios(变量)
Vue.prototype.$axios=axios

import Vuex from 'vuex'
Vue.use(Vuex);
import store from './store'//<====添加
import Vue from 'vue';
import ElementUI from 'element-ui'; //加入
import 'element-ui/lib/theme-chalk/index.css';//加入
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store, //<====添加
  components: { App },
  template: '<App/>'
})
